package com.beemans.corekit.data;

import androidx.annotation.LayoutRes;

import com.beemans.corekit.R;

public enum PushLayout {
    HAS_DESC(R.layout.push_notification_collapsed_1, R.layout.push_notification_expanded_1, R.layout.push_notification_head_1),
    ONLY_TITLE(R.layout.push_notification_collapsed_2, R.layout.push_notification_expanded_2, R.layout.push_notification_head_2);

    @LayoutRes
    public final int collapsedLayout;
    @LayoutRes
    public final int expandedLayout;
    @LayoutRes
    public final int headLayout;

    PushLayout(int collapsedLayout, int expandedLayout, int headLayout) {
        this.collapsedLayout = collapsedLayout;
        this.expandedLayout = expandedLayout;
        this.headLayout = headLayout;
    }

    public static PushLayout getPushLayout(boolean onlyTitle) {
        return onlyTitle ? ONLY_TITLE : HAS_DESC;
    }
}